package com.scgl.process.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.scgl.process.mapper.ScglReportMapper;
import com.scgl.process.domain.ScglReport;
import com.scgl.process.service.IScglReportService;

/**
 * 报工记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-10-31
 */
@Service
public class ScglReportServiceImpl implements IScglReportService 
{
    @Autowired
    private ScglReportMapper scglReportMapper;

    /**
     * 查询报工记录
     * 
     * @param processId 报工记录主键
     * @return 报工记录
     */
    @Override
    public ScglReport selectScglReportByProcessId(Long processId)
    {
        return scglReportMapper.selectScglReportByProcessId(processId);
    }

    /**
     * 查询报工记录列表
     * 
     * @param scglReport 报工记录
     * @return 报工记录
     */
    @Override
    public List<ScglReport> selectScglReportList(ScglReport scglReport)
    {
        return scglReportMapper.selectScglReportList(scglReport);
    }

    /**
     * 新增报工记录
     * 
     * @param scglReport 报工记录
     * @return 结果
     */
    @Override
    public int insertScglReport(ScglReport scglReport)
    {
        return scglReportMapper.insertScglReport(scglReport);
    }

    /**
     * 修改报工记录
     * 
     * @param scglReport 报工记录
     * @return 结果
     */
    @Override
    public int updateScglReport(ScglReport scglReport)
    {
        return scglReportMapper.updateScglReport(scglReport);
    }

    /**
     * 批量删除报工记录
     * 
     * @param processIds 需要删除的报工记录主键
     * @return 结果
     */
    @Override
    public int deleteScglReportByProcessIds(Long[] processIds)
    {
        return scglReportMapper.deleteScglReportByProcessIds(processIds);
    }

    /**
     * 删除报工记录信息
     * 
     * @param processId 报工记录主键
     * @return 结果
     */
    @Override
    public int deleteScglReportByProcessId(Long processId)
    {
        return scglReportMapper.deleteScglReportByProcessId(processId);
    }
}
